package com.gdcp.mapper;

import com.gdcp.beans.Collect;
import com.gdcp.beans.Product;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CollectMapper {
    void insert(Collect collect);

    List<Collect> queryAllByUserId(@Param("user_id") Integer id);

    void delete(Integer id);

    List<Collect> getPageNumber(Integer user_id);

    List<Collect> queryByPage(@Param(value = "user_id") Integer user_id, @Param(value = "pc") int pc, @Param(value = "ps") int ps);

    List<Collect> checkByShopIdAndUserId(Integer shop_id, Integer user_id);
}
